
CC := gmcs
CFLAGS :=
SRCFILES := $(wildcard Type/*.cs) $(wildcard Util/*.cs) $(wildcard *.cs)

default: all

stage:
	@echo Creating directories...
	@echo '    'mkdir -p doc doc/api doc/design doc/handbook
	@mkdir -p doc doc/api doc/design doc/handbook

compile: $(SRCFILES)
	@echo Compiling classes
	@echo '    '$(CC) ... -out:poltool.exe
	@$(CC) $(CFLAGS) $? -out:poltool.exe

all: Makefile stage compile


gendoc: $(SRCFILES)
	@echo Generating API documentation from embedded documention...
	@echo '    '$(CC) -doc:doc/api/api.xml    ...
	@$(CC) -doc:doc/api/api.xml $(SRCFILES)

doc: stage gendoc
